package com.bank.mapper;

import com.bank.dto.AccountOperationDTO;
import com.bank.dto.TransactionPageQueryDTO;
import com.bank.entity.BillTransaction;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

@Mapper
public interface BillTransactionMapper {
    void addTransaction(BillTransaction billTransaction);

    BigDecimal getMaxLimitByAccountId(@Param("account") AccountOperationDTO accountOperationDTO, @Param("localDate") String LocalDate);

    Page<BillTransaction> pageQuery(TransactionPageQueryDTO queryDTO);
}
